﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="logerror.aspx.cs" Inherits="OP.logs.logerror" %>
<%@ Import Namespace="OF.Utility" %>
<!DOCTYPE html>

<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager, Version=7.3.2.0, Culture=neutral, PublicKeyToken=fb0a0fe055d40fd4" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- #include file="~/html/file.aspx" -->
     <style type="text/css">
        .das_table table td{
            padding:5px 0 5px 5px;
            white-space: normal;
            word-break: keep-all;
            word-wrap: break-word;
        }
    </style>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="wrap">
            <!-- #include file="~/html/top.aspx" -->
            <div class="das">
                <div class="contents">
                    <!-- #include file="~/html/menu.aspx" -->
                    <div class="main">
                        <!--标题栏-->
                        <div class="main_blc">
                            <div class="main_title">
                                <h3>行为日志</h3>
                            </div>
                              <!--搜索栏-->
                        <div class="main_search_bg">
                            <div class="main_search" style="height: auto;">
                                <dl class="con-search-item">
                                    <dt>平台：
                                    </dt>
                                    <dd>
                                          <asp:DropDownList ID="drpPlatform" runat="server" AppendDataBoundItems="True" CssClass="inputtxt w150">
                                            <asp:ListItem Value="">全部</asp:ListItem>
                                           
                                        </asp:DropDownList>
                                    </dd>
                                </dl>
                               
                                <dl class="con-search-item">
                                    <dt>发生时间：
                                    </dt>
                                    <dd>
                                        <asp:TextBox ID="txtStartDate" onFocus="var txtEndDate=$dp.$('txtEndDate');WdatePicker({onpicked:function(){txtEndDate.focus();}})" CssClass="inputtxt w100" runat="server"></asp:TextBox>
                                         到 
                                        <asp:TextBox ID="txtEndDate" onFocus="var txtEndDate=$dp.$('txtEndDate');WdatePicker({onpicked:function(){txtEndDate.focus();}})" CssClass="inputtxt w100" runat="server"></asp:TextBox>
                                    </dd>
                                </dl>
                               
                               
                                
                               
                                <dl class="con-search-item">
                                    <dt>
                                        <a href="javascript:void(0);" class="submit">
                                            <asp:Button runat="server" ID="btnSel" Text="查询" OnClick="btnSave_Click" />
                                        </a>
                                    </dt>
                                    <dd></dd>
                                </dl>

                                <div class="clearfix"></div>
                            </div>
                        </div>
                              <!--按钮栏-->
                        <div class="dasBtn1 das_tbtns cuxiao_title_new">
                            <ul class="clearfix">
                                <!--列表个数-->
                                <li class="fr_ts fr_ts_new">
                                    共 <strong>
                                        <%=pager1.RecordCount%>
                                    </strong> 条日志
                                </li>
                            </ul>
                        </div>
                        <!--表格栏-->
                        <div class="das_table">
                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                <colgroup></colgroup>
                                <thead>
                                    <tr>
                                       <th scope="col">
                                            <span>平台</span>
                                       </th>
                                       <th scope="col">
                                            <span>请求方法</span>
                                       </th>
                                        <th scope="col">
                                            <span>客户IP地址</span>
                                        </th>
                                        <th scope="col">
                                            <span>请求地址</span>
                                        </th>
                                         <th scope="col">
                                            <span>PostData</span>
                                        </th>
                                        <th scope="col">
                                            <span>时间</span>
                                        </th>
                                        <th>
                                            操作
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <asp:Repeater ID="rptDataList" runat="server">
                                        <ItemTemplate>
                                              <tr>
                                              
                                                <td>
                                                   <%#Eval("PlatformName") %>
                                                </td>
                                                <td>
                                                    <%#Eval("RequestMethod") %>
                                                </td>
                                                <td>
                                                  <%#Eval("ClientIP") %>
                                                </td>
                                                <td>
                                                     <%#Eval("RequestUrl") %>
                                                </td>
                                               <td>
                                                  <%#Eval("PostData") %>
                                                </td>
                                                <td>
                                                     <%#EConvert.ToDateTime(Eval("CreatedDate")).ToDisplay("yyyy-MM-dd HH:mm:ss") %>
                                                </td>
                                              
                                                <td class="td-no-wrap">
                                                   <a href="javascript:void(0)" onclick="openWindow(<%# Eval("ErrorLogID") %>)">
                                                       详情
                                                   </a>
                                                </td>
                                              </tr>
                                        </ItemTemplate>
                                      
                                    </asp:Repeater>
                                </tbody>
                            </table>
                        </div>
                             <!--设定无内容时格式-->
                            <div class="das_tableb " <%=style %>>
                                <div class="alert_tips">
                                    <div>
                                        没有数据！
                                    </div>
                                </div>
                            </div>
                        <!--底部分页栏-->
                        <div class="das_tableb pages">
                            <webdiyer:AspNetPager ID="pager1" PageSize="15" runat="server" PrevPageText="&lt;&lt;上一页"
                                                  NextPageText="下一页&gt;&gt;" FirstPageText="首页" LastPageText="末页" showinputbox="Auto"
                                                  AlwaysShow="false" OnPageChanged="pager1_PageChanged" CssClass="paginator" CurrentPageButtonClass="cpb">
                            </webdiyer:AspNetPager>
                        </div>
                        </div>
                    </div>
                    <sub class="tl"></sub>
                    <sub class="tr"></sub>
                </div>
                <sub class="tl"></sub>
            </div>
            <!-- #include file="~/html/foot.aspx" -->
        </div>
    </form>
    <script type="text/javascript">
        <%=strMessage %>

         function openWindow(id) {
            var url = '<%=GetPageUrl("logerrordetail.aspx")%>?id=' + id;
            var width = 900 || $(top.window).width() * 0.8;
            var height = 600 || $(top.widdow).height() * 0.8;
            showTopLayer("详情", url, width, height);
        }
    </script>
</body>
</html>
